@import (reference) '~@/assets/css/variables';


.pro_table {
  //height: calc(100vh - 300px);

  :global {

    .ant-table-thead > tr > th {
      height: 50px;
      background: #f8f9fb;
    }

    /* 去除表头的 每隔右侧的竖线 */

    .ant-table-thead
    > tr
    > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
      display: none;
    }

    //.ant-table-body {
    //border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    //}
    .ant-table-thead > tr > th {
      padding: 14px 16px;
    }

    .ant-table-tbody > tr > td {
      padding: 11px 16px;
    }

    .ant-table-tbody > tr > td {
      border-bottom-color: rgb(0 0 0 / 5%);
    }

    .ant-table-tbody > tr:last-child > td {
      //border-bottom: none;
    }

    // 嵌套子表格 +按钮 样式调整
    .ant-table-row-expand-icon-cell {
      vertical-align: middle !important;
    }

    .ant-table-expanded-row {
      background: #f8f9fb;

      .ant-table {
        background: transparent;
      }

      tr.ant-table-expanded-row > td {
        background: transparent;
      }

      .ant-table-thead > tr > th {
        background: transparent;
      }

      .ant-table-wrapper {
        margin: 1px 0;
      }

      .ant-table-cell {
        padding: 15px 16px !important;
      }
    }

    .ant-empty {
      margin-top: 12px;
      margin-bottom: 12px;
    }
  }
}


.table_footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 14px;
  padding-bottom: 11px;

  .table_footer_left {
    display: flex;
    align-items: center;
    color: @gray-600;

    .checkbox_icon {
      margin: 0 16px;
      cursor: default;

      :global {
        .ant-checkbox-input {
          cursor: default;
        }
      }
    }

    .left_tips {
      .left_tips_num {
        color: @primary-sub-700;
      }
    }

    .operation_btn {
      margin-left: 15px;
    }

    .more_btn {
      margin-left: 15px;
      cursor: pointer;
    }

    :global {
      .ant-checkbox-wrapper {
        line-height: 1.5715;
      }
    }
  }

  .table_footer_right {
  }
}

.dropdown_sty {
  :global {
    .ant-dropdown-menu {
      .ant-dropdown-menu-item {
        color: @primary-sub-700;

        &:hover {
          background: @tp-color;
          cursor: default;
        }
      }
    }
  }
}
